{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol" style="padding-top:10px;">  
                    	{include file="product/box-navigation.tpl"}               	
                    </div>
                    <div class="rightCol">
                        <div class="midCol">  
                        	{if isset($intCate) && !isset($intSub)}
                            	{foreach item=parent from=$arrResult}
                                    <div class="boxProduct">
                                        <div class="headerTitle"><h3>{$parent.name}</h3></div>
                                        <div class="productItem">
                                        	{foreach item=item from=$parent.data}
                                            	{include file="product/box-product-item.tpl"}                                                
                                            {/foreach}
                                            {if $parent.data|@count%2 != 0}
                                            	<div class="productItems">&nbsp;</div>
                                            {/if}
                                        </div>
                                    </div>          
                                {/foreach}
                            {elseif isset($intCate) && isset($intSub)}
                            	<div class="boxProduct">
                                	<div class="headerTitle"><h3>{$arrResult.0.sub_category_name}</h3></div>
                                    <div class="productItem">
                                    	{if $arrResult}
	                                    	{foreach item=item from=$arrResult}
                                            	{include file="product/box-product-item.tpl"}  
                                            {/foreach}
                                            {if $arrResult|@count%2 != 0}
                                            	<div class="productItems">&nbsp;</div>
                                            {/if}
                                        {/if}
                                        {paging total=$intTotal limit=$intLimit offset=$intOffset url=$strUrl}
                                    </div>
                                </div>
                            {else}
                            	<div class="boxProduct">
                                	<div class="headerTitle"><h3>Gian hàng chính</h3></div>
                                    <div class="productItem">
                                    	{if $arrResult}
	                                    	{foreach item=item from=$arrResult}
                                            	{include file="product/box-product-item.tpl"}  
                                            {/foreach}
                                            {if $arrResult|@count%2 != 0}
                                            	<div class="productItems">&nbsp;</div>
                                            {/if}
                                        {/if}
                                        {paging total=$intTotal limit=$intLimit offset=$intOffset url=$strUrl}
                                    </div>
                                </div>
                            {/if}
                        </div>
                        <div class="extCol">
                        	{include file="product/box-basket.tpl"} 
                      	</div> 
                   	</div>
               	</div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}